package cloud.take.off.module.common;

import lombok.Builder;
import lombok.Data;

/**
 * @description:
 * @author: gangan
 * @create: 2020-03-11 15:10
 */
@Data
@Builder
public class CustomCode implements ResultCode {

    private boolean success;
    private int code;
    private String message;

    @Override
    public boolean success() {
        return this.success;
    }

    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String message() {
        return this.message;
    }
}
